package org.ssmd3.service;

import org.ssmd3.pojo.News;

import java.util.List;

public interface NewsService {
    int save(News news);
    int update(News news);
    News getOneNews(int id);

    int getRecordCount(News news);
    List<News> getNewsListByPage(News news);
    List<News> getTopNewsList();

    int delete(int id);
    int deleteAll(String[] ids);
}
